function [model, startCompound, thermodinamicsValues, defines, metabolitesToExclude, dname] = init_sanalyzer()
    tStart = tic;   
    
     disp('Getting working dirrectory.. ');
    dname = uigetdir;
    
    disp('Starting COBRA initialization .. ');
   
    %COBRA MODEL
    initCobraToolbox;
    disp('OPENING SBML MODEL ...');
    helpdlg('PLEASE SELECT COBRA MODEL FILE');
    model = readCBmodel;
 
    model = init_model(model);
    
    %read global variables
    defines = load_defined_parametrs();
   
    metabolitesToExclude = textread('datfiles/listOfMeabolitesToExclude.txt', '%s', 'whitespace', ' ');
    
    startCompound = defines.initialCompound;
    
    %%%% Termodinamic %%%%
    if strcmp(defines.isTermodinamicUsed,'true')
        thermodinamicsValues=[];
         helpdlg('PLEASE SELECT THERMODINAMICS DATA FILE');
        disp('OPENING TERMODINAMICS eQuilibrator DATA ...');
        [FileName,PathName,FilterIndex] = uigetfile({'*.csv;*.xls;*.xlsx','Excel Files (*.csv,*.xls,*.xlsx)'}, ...
                                                'Open eQuilibrator Data file');
        
         if ispc
              [ndata, text, alldata] = xlsread(strcat(PathName,'\',FileName));
         else
               [ndata, text, alldata] = xlsread(strcat(PathName,FileName));
         end
         
        for i=2:length(text)
            rowValue = regexp(text(i),',','split');
            reactionid='R00000';
            reactionid(6-length(rowValue{1}{1}(:,:))+1:6)=rowValue{1}{1};
            thermodinamicsValues=[thermodinamicsValues; reactionid, rowValue{1}(2)];
        end  
        clear alldata;
        clear PathName;
        clear FilterIndex;
        clear FileName;
        clear ndata;
        clear rowValue;
        clear text;
        clear reactionid;
    end    
    disp('Finishing ...');
    tElapsed = toc(tStart)
end